using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Windows;
using System.Xml;
using System.Threading;
using CookComputing.XmlRpc;

namespace uchomeDesktop
{
    /// <summary>
    /// uchome API class
    /// </summary>
    class uchomeAPI
    {
        public static string auth = Properties.Settings.Default.auth;
        public static IuchomeAPI proxy;

        public uchomeAPI()
        {
            try
            {
                proxy = XmlRpcProxyGen.Create<IuchomeAPI>();
                proxy.Url = Properties.Settings.Default.uchApiUrl;

                RequestResponseLogger dumper = new RequestResponseLogger();
                dumper.Directory = "C:/temp";
                dumper.Attach(proxy);
            }
            catch (Exception ee)
            {
                MessageBox.Show(ee.Message);
            }
        }
    }

}
